package xcmg.device.dao.mapper;

import org.apache.ibatis.annotations.Param;
import xcmg.device.dao.entity.setting.AppSettingDO;
import org.apache.ibatis.annotations.Mapper;
import xcmg.device.service.vo.setting.AppSettingVO;

import java.util.List;

@Mapper
public interface AppSettingMapper {
    int deleteByPrimaryKey(String id);

    int insert(AppSettingDO record);

    AppSettingDO itemByPrimaryKey(String id);

    AppSettingDO itemByPrimaryType(String type);

    int update(AppSettingDO record);

    List<AppSettingDO> list(AppSettingVO appSettingVO);

    Integer versionCount(@Param("type")String type,@Param("version")String version);
}